#https://github.com/amrayn/easyloggingpp#multi-threading
#Easylogging++ is thread-safe. By default thread-safety is disabled.
#You can enable it by defining ELPP_THREAD_SAFE otherwise you will see unexpected results.
#This is intentional to make library efficient for single threaded application

#define ELPP_THREAD_SAFE
#define ELPP_FORCE_USE_STD_THREAD

# explain : modify file name
#   easylogging++.h     --> easylogging.h
#   easylogging++.cc    --> easylogging.cc
# reason  : When qmake compiles the static library, if the intermediate file name contains++(for example: easylogging++. o),
#           an error will be reported: gcc ar: can't open file. o (mingw ar -M < object_ script.libxxxxx.Debug)

#DEFINES += ELPP_NO_LOG_TO_FILE
QMAKE_CXXFLAGS += -DELPP_NO_DEFAULT_LOG_FILE

DEFINES += ELPP_THREAD_SAFE
DEFINES += ELPP_FORCE_USE_STD_THREAD
DEFINES += AUTO_INITIALIZE_EASYLOGGINGPP
#DEFINES += ELPP_FEATURE_CRASH_LOG

#INCLUDEPATH +=  $$PWD/../../../3th/easyloggingpp-9.96.7

HEADERS += \
    $$PWD/easylogging.h

SOURCES += \
    $$PWD/easylogging.cc




